//
// Created by Castle on 2025/10/24.
//

using namespace std;
#include <iostream>

int main() {
    // Declaring pointers
    int* p_number {};

    double* p_fractional_number {};

    int* p_number1 {nullptr};
    int* p_fractional_number1 {nullptr};

    cout << "size of number pointer: " << sizeof(p_number) << endl;

    int int_val{34};
    int* p_int{&int_val};
    cout << "Int var : " << int_val << endl;
    cout << "p_int (address in memory) : " << p_int << endl;

    int int_var1 {56};
    int_var1 = 124;
    p_int = &int_var1;
    cout << "p_int (with different address) : " << p_int << endl;


    return 0;
}